package com.wang.controller;

import com.wang.entity.Sort;
import com.wang.service.SortService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Classname SortController
 * @Description TODO
 * @Date 2024/11/11 9:58
 * @Created by pc
 */
@RestController
@RequestMapping("/sort")
public class SortController {
    @Resource
    private SortService sortService;

    @RequestMapping
    public List<Sort> findAll(){
        return sortService.findAll();
    }
}
